//
//  ClassifyData.m
//  FLLGodOfCooking
//
//  Created by LL.F on 16/09/07
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "ClassifyData.h"
#import "ClassifySecData.h"

@implementation ClassifyData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [ClassifySecData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<ClassifySecData *>  *classifySecDataArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ClassifySecData *classifyDic = [ClassifySecData modelWithDic:dic];
            [classifySecDataArray addObject:classifyDic];
        }
        _data = classifySecDataArray;
    }
}

@end
